package cn.terminus.service.customer.kafka;

import cn.terminus.result.common.context.TerminusCallContext;
import cn.terminus.result.common.util.TerminusDateUtils;
import lombok.Data;

@Data
public class KafkaCustomerParam extends StatisticsBase {

    /**
     * 客户性质
     */
    private String cboCustomNature;
    /**
     * 客户行业
     */
    private String cboCustomIndustry;

    /**
     * 客户数量
     */
    private Integer customNum;
    /**
     * 新增数量
     */
    private Integer customAddNum;

    public static KafkaCustomerParam setCustomerMessage(TerminusCallContext context, String cboCustomIndustry, String cboCustomNature, Integer num) {
        KafkaCustomerParam param = new KafkaCustomerParam();
        param.setBusinessId(context.getBusiness().getBusinessId());
        param.setCboCustomIndustry(cboCustomIndustry);
        param.setCboCustomNature(cboCustomNature);
        param.setCustomNum(num);
        param.setCustomAddNum(num);
        param.setDataTime(TerminusDateUtils.getDate10YMD());
        return param;
    }


}
